#include <iostream>
using namespace std;

int main()
{
	int n = 1;
	double h, sum;
	cin >> h;
	sum = h;
	while(n < 10)
	{
		h /= 2;
		sum += h * 2;
		n++;
	}
	cout << sum << endl;
	cout << h / 2 << endl;
	return 0;
 } 
